<template>
    <el-upload class="upload-demo" drag action="#" :show-file-list="true" :auto-upload="false"
                    :http-request="handlerUpload" :limit="1" accept=".zip"
                    :before-upload="handleBeforeUpload"
                    :on-change="changeFile">
                    <el-icon class="el-icon--upload"><upload-filled /></el-icon>
                    <div class="el-upload__text">
                        将文件拖拽到此处 <em>点击上传</em>
                    </div>
                    <template #tip>
                        <div class="el-upload__tip">
                            只能上传一个文件（后缀为.zip）
                        </div>
                    </template>
                </el-upload>
</template>

<script>
export default {
    name: "upload",

}
</script>

<style scoped></style>